<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta charset="utf-8" />
    <title>用户登录</title>
    <link rel="stylesheet" href="../src/css/layui.css">
    <link rel="stylesheet" href="../src/css/login.css" media="all">
</head>

<body>
    <div class="login-wrapper">

        <!--<div class="login-header">-->
        <!--<img src="assets/images/logo_1.png"> JeeCp-->
        <!--</div>-->

        <div class="login-body">
            <div class="layui-card">
                <div class="layui-card-header">
                    <i class="layui-icon layui-icon-engine"></i>&nbsp;&nbsp;用户登录
                </div>
                <form class="layui-card-body layui-form layui-form-pane">
                    <div class="layui-form-item">
                        <label class="layui-form-label"><i class="layui-icon layui-icon-username"></i></label>
                        <div class="layui-input-block">
                            <input name="username" type="text" lay-verify="required" placeholder="账号"
                                class="layui-input" value="admin">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label"><i class="layui-icon layui-icon-password"></i></label>
                        <div class="layui-input-block">
                            <input name="password" type="password" lay-verify="required" placeholder="密码"
                                class="layui-input" value="admin">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <input name="deviceId" type="hidden" />
                        <button lay-filter="login-submit" class="layui-btn layui-btn-fluid" lay-submit
                            id="login-submit">登 录</button>
                    </div>
                </form>
            </div>
        </div>


        <div class="login-footer">
            <p>© 2020 <a href="javascript:;" target="_blank">北京市公安局版权所有</a></p>

        </div>

    </div>

    <script src="../src/setter.js?v=0513"></script>
    <script src="../src/layui.js"></script>
    <script>
        layui.use(['form'], function () {

            var $ = layui.jquery;
            // $("input[name='deviceId']").val(uuid);

            var form = layui.form;

            // if (config.getToken()) {
            //     location.replace('./');
            //     return;
            // }


            // $('#login-submit').click(function () {

            //     alert('1');
            // });

            // //监听提交
            form.on('submit(login-submit)', function (data) {
                location.replace('./index.html');
                return false;
            });
            
            var login=login;
            login('admin','admin');
            

        });
    </script>
</body>

</html>